package io.renren.modules.course.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import io.renren.modules.course.entity.CourseBodyEntity;
import io.renren.modules.course.entity.TreeEntity;
import io.renren.modules.myCourse.entity.ChooseTestEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-07-03 16:11:00
 */
public interface CourseBodyDao extends BaseMapper<CourseBodyEntity> {

    List<Long> queryCourseBodyIdList(Long parentId);

    List<CourseBodyEntity> getCourseList(Map<String, Object> params);

    List<CourseBodyEntity> queryListByCourseName(String courseName);

    List<TreeEntity> getCourseTree(Integer id);

    List<TreeEntity> getCourseTreeGen(Integer id);

    void uploadTest(Map map);

    ChooseTestEntity getInfoById(int id);

    CourseBodyEntity getCourseBodyById(int id);

    int getCourseIdByCourseBodyId(int courseBodyId);

    void deleteCourseTest(int searching);

    void insertList(List<Map> list);

    void updateQuestionTotal();
}
